package org.hljdrl.daf.xml;


public class Employee {

	// tags are generated based on the variables.
	private String name;
	private int age;
	private double salary;
	private Address address;
	
	@Override
	public String toString() {
		StringBuffer mSm = new StringBuffer();
		mSm.append("name: ").append(name).append("\n");
		mSm.append("age: ").append(age).append("\n");
		mSm.append("salary: ").append(salary).append("\n");
		mSm.append(address.toString());
		
		return mSm.toString();
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public Address getAddress() {
		return address;
	}
}
